/*设置顶部导航topnav的高度,颜色*/
.topnav{
    height: 40px;
    background-color: #333333;
}

/*设置顶部导航栏左边 左浮动 右边右浮动*/
.topnav-left{
    float: left;
}
.topnav-right{
    float: right;
}

/*设置顶部导航栏a标签的行高, 字体颜色,左浮动 */
.topnav-left a,
.topnav-right a{
    float: left;
    line-height: 40px;
    color: #b0b0b0;
}
/*设置a标签移动效果*/
.topnav-left a:hover,
.topnav-right a:hover{
    color: #ffffff;
}

/*设置竖线做浮动 行高 颜色 上下间距0 左右间距8  */
.topnav-left i,
.topnav-right i{
    float: left;
    line-height: 40px;
    color: #b0b0b0;
    margin: 0 8px;
}

/*设置右侧购物车 宽度120px  背景色 文字居中 */
.topnav-right .cart{
    margin-left: 24px;
    width: 120px;
    background-color:#424242 ;
    text-align: center;
}

/*购物车移动变颜色*/
.topnav-right .cart:hover{
    color:#ff6700 ;
}

/*----------*/
/*2.顶部搜索栏*/
/*最外层div高度100px*/
.searchnav{
    height: 100px;
}

/*
设置左侧logo样式
左浮动, 宽高,背景色,内边距,盒模型,上外边距

*/
.searchnav-log{
    float: left;
    width: 55px;
    height: 55px;
    background-color: #ff6700;
    padding: 3px;
    box-sizing: border-box;
    margin-top: 21px;
}

/*设置 search-tab 样式
  左浮动 高度 左外边距
*/
.search-tab{
    float: left;
    height: 100px;
    margin-left: 180px;
}

/*设置一堆标签的样式*/
.search-tab a{
    float: left;
    font-size: 16px;
    margin: 0px 10px;
    line-height: 100px;
}

/*设置右侧搜索框*/
.searchnav-search{
    float: right;
    margin-top: 25px;
    width: 296px;
    height: 50px;
    border: 1px solid #e0e0e0;
}
/*设置左侧input输入框样式*/
.searchnav-search input{
    float: left;
    width: 244px;
    height: 100%;
    box-sizing: border-box;
    border: 0px;
    border-right: 1px solid #e0e0e0;
}
/*设置右侧按钮的样式*/
.searchnav-search button{
    float: left;
    width: 52px;
    height: 100%;
    box-sizing: border-box;
    background-image: url("../img/search_icon.png");
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    border: 0px;
}

/*设置热词样式 */
.searchnav-search-hotkeys{
    position: absolute;
    top: 44%;
    right: 59px;
    height: 18px;
    line-height: 18px;
}
/*设置热词效果*/
.searchnav-search-hotkeys span{
    background-color: #e0e0e0;
}



/*轮播图*/
/*设置最外层高度为460px*/
.carousel{
    height: 460px;
}
/*设置轮播图对应的 a标签为块级*/
.carousel-a{
    display: block;
}
/*设置左侧列表样式*/
.carousel-left-list{
    height: 460px;
    width: 234px;
    background-color: #9da3a2;
    position: absolute;
    top: 0px;
    left: 0px;
    padding-top: 20px;
    box-sizing: border-box;
}
/*设置左侧列表中a标签的样式*/
.carousel-left-list a{
    display: block;
    padding-left: 30px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    color: white;
    font-weight: 700;
    padding-right: 23px;
}
/*a标签移动变色*/
.carousel-left-list a:hover{
    background-color: #ff6700;
}
/*设置左侧列表中 右箭头向右浮动 */
.carousel-left-list i{
    float: right;
}
/*设置轮播图左箭头按钮*/
.carousel-left{
    display: block;
    height: 70px;
    width: 40px;
    /* background-color: #6c6c6e; */
    position: absolute;
    top: 50%;
    left: 234px;
    font-size: 40px;
    line-height: 70px;
    color: #cfcecf;
}
/*设置轮播图右箭头按钮*/
.carousel-right{
    display: block;
    height: 70px;
    width: 40px;
    /* background-color: #6c6c6e; */
    position: absolute;
    top: 50%;
    right: 0px;
    font-size: 40px;
    line-height: 70px;
    color: #cfcecf;
}
/*设置轮播图左右按钮移动效果*/
.carousel-left:hover,
.carousel-right:hover{
    background-color: #6c6c6e;
    color: white;
}
/* 原点导航 */
.dotnav {
    position: absolute;
    right: 34px;
    bottom: 26px;
}

.dotnav li {
    float: left;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border: 2px solid #b0b3b5;
    background-color: #8d9195;
    border-radius: 50%;
    margin: 0 2px;
}

.dotnav .active,
.dotnav li:hover {
    background-color: #f3f7fb;
    border-color: #929496;
}


/*优惠活动*/

/*设置上下外边距*/
.discount{
    margin-top: 14px;
    margin-bottom: 25px;
}
/*设置左侧各种服务总体大小,颜色*/
.discount-server{
    float: left;
    width: 234px;
    height: 172px;
    background-color: #5f5750;
    margin-right: 14px;
}
/*设置右侧三张图片的样式*/
.discount-product {
    /*display: inline-block;*/
    float: left;
    width: 316px;
    height: 172px;
}
/*右侧图片填充满a标签*/
.discount-product img{
    width: 100%;
    height: 100%;
}

/*右侧中间图片设置外边距 得到空隙样式*/
.discount-product:nth-child(2){
    margin-left: 15px;
    margin-right: 15px;
}

/*调试左侧各种服务的图标和文字效果*/
.discount-server a{
    position: relative;
    width: 78px;
    height: 86px;
    text-align: center;
    float: left;
    /*透明度50%*/
    opacity: 0.5;
}

.discount-server a:hover{
    /*不透明*/
    opacity: 1;
}

.discount-server span{
    display: block;
    color: white;
}
.discount-server img{
    width: 22px;
    height: 22px;
    margin-top: 22px;
}

/*设置边线  左边线*/
.discount-server a:before{
    position: absolute;
    content: '';
    top: 9px;
    left: 3px;
    height: 70px;
    width: 1px;
    background-color: #665e57;
}
/*设置边线 上边线*/
.discount-server a:after{
    position: absolute;
    content: '';
    top: 2px;
    left: 9px;
    height: 1px;
    width: 70px;
    background-color: #665e57;
}



/*小米闪购*/
.flash{
    height: 402px;
    background-color: #f5f5f5;
}
/*设置闪购标题栏高度*/
.flash-title{
    height: 62px;
}

/*按照设计图测量结果 书写如小米闪购样式 */
.flash-title h2{
    float: left;
    line-height: 62px;
    color: #333333;
    font-size: 22px;
    font-weight: 100;
}

/*按照设计图 设置闪购标题栏右侧按钮*/
.flash-title-button{
    float: right;
    height: 24px;
    width: 71px;
    border: 1px solid #e0e0e0;
    margin-top: calc((62px - 24px) / 2);
}
/*闪购左右侧按钮 a标签 */
.flash-title-button a{
    width: 33px;
    height: 22px;
    /* border: 1px solid #e0e0e0; */
    float: left;
    text-align: center;
}
.flash-title-button a:nth-child(1){
    border: 1px solid #e0e0e0;
}
/*闪购 a标签内方向箭头 */
.flash-title-button  i {
    line-height: 22px;
    font-size: 16px;
    color: #b0b2ba;
}

.flash-title-button  i:hover{
    color: #fe702c;
}

/*闪购内容*/
.flash-content{
    height: 340px;
}
/*闪购左侧秒杀*/
.flash-content-seckill{
    float: left;
    width: 234px;
    height: 100%;
    border-top: 1px solid #e53934;
    background-color: #f1eded;
    /*box-sizing: border-box;*/
    text-align: center;

}
/* 00:00 场 */
.flash-content-seckill h3{
    font-size: 20px;
    margin-top: 61px;
    margin-bottom: 30px;
    color: red;
    font-weight: normal;

}
/* 距离结束还有  */
.flash-content-seckill-text{
    display: block;
    margin-top: 34px;
    margin-bottom: 29px;
}

/* 时间  */
.flash-content-seckill-time span,
.flash-content-seckill-time small{
    display: inline-block;
    font-size: 20px;
    line-height: 46px;

}
.flash-content-seckill-time span{
    width: 46px;
    height: 46px;
    background-color: #605751;
    color: white;
}

.flash-content-seckill-time small{
    margin: 0 5px;
}
/* 闪购右侧4个商品 */
.flash-content-show{
    height: 100%;
    float: right;
    width: calc(1226px - 234px);
}

/* 那一堆a标签*/
.flash-content-show-product{
    float: left;
    width: 234px;
    height: 100%;
    background-color: #ffffff;
    margin-left: 14px;
    text-align: center;
    border-top: 1px solid blue;
}
/* 右侧4个商品文字 */
.flash-content-show-product h4{
    font-size: 15px;
    font-weight: normal;
}

.flash-content-show-product p{
    color: #adadad;
    font-size: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.flash-content-show-product .new{
    font-size: 14px;
    color: #fa6509;

}

.flash-content-show-product .old{
    font-size: 14px;
    color: #adadad;
    text-decoration: line-through;
}

/*广告*/
.ad{
    background-color: #f5f5f5;
    height: 120px;
    padding: 22px 0px;
}

/*手机 */
.phone{
    background-color: #f5f5f5;
}

.phone-title{
    height: 58px;
    line-height: 58px;
}

.phone-title h2{
    float: left;
    font-size: 22px;
    font-weight: lighter;
}
.phone-title a{
    float: right;
    font-size: 16px;
}
.phone-title>a>i{
    background-color: #b0b0b0;
    border-radius: 50%;
    color: white;
    padding: 1px 0px;
}
/*设置移动到 查看全部的时候 文字和图标一起变色 动画过度0.4秒*/
.phone-title:hover a,i{
    /* all任何变化的属性 0.4s代表这些变化用了0.4秒来完成 */
    transition: all .4s;
    color: #ff6700;
}

.phone-title:hover i{
    transition: all .4s;
    background-color: #ff6700;
}
/*左边海报*/
.phone-content-left{
    float: left;
    height: 614px;
    width: 234px;
}
.phone-content-show{
    float: right;
    width: calc(1226px - 234px);
    height: 614px;
}

/* 那一堆a标签*/
.phone-content-show-product{
    position: relative;
    top: 0px;
    left: 0px;
    float: left;
    width: 234px;
    height: 300px;
    background-color: #ffffff;
    margin-left: 14px;
    text-align: center;
    transition:all 0.4s;
}

.phone-content-show-product:nth-child(-n+4){
    margin-bottom: 14px;
}

.phone-content-show-product:hover{
    top: -1px;
    /*阴影特效*/
    box-shadow: 0 10px 20px rgba(0,0,0, 0.2);
}

/* 手机文字 */
.phone-content-show-product h4{
    font-size: 15px;
    font-weight: normal;
}

.phone-content-show-product p{
    color: #adadad;
    font-size: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.phone-content-show-product .new{
    font-size: 14px;
    color: #fa6509;

}



/*家电*/
.homeapp{
    background-color: #f5f5f5;
}

.homeapp-title{
    height: 58px;
    line-height: 58px;
}

.homeapp-title h1{
    float: left;
    font-size: 22px;
    font-weight: lighter;
}

.homeapp-title-button{
    float: right;

}

.homeapp-title-button a{
    margin-left: 16px;
    font-size: 16px;
}

.homeapp-title-button .active{
    color: #ff6700;
    padding-bottom: 5px;
    border-bottom: 2px solid #ff6700;
}

/* 那一堆a标签*/
.homeapp-content-show-product{
    position: relative;
    top: 0px;
    left: 0px;
    float: left;
    width: 234px;
    height: 300px;
    background-color: #ffffff;
    margin-left: 14px;
    text-align: center;
    transition:all 0.4s;
}
.homeapp-content-show-product:nth-child(5n+1){
    margin-left: 0;
}
.homeapp-content-show-product:nth-child(5n+1) img {
    width: 100%;
}

.homeapp-content-show-product:nth-child(-n+5){
    margin-bottom: 14px;
}

/*前面9个有这个特效 后面的单独设置 */
.homeapp-content-show-product:hover:nth-child(-n+9){
    top: -1px;
    /*阴影特效*/
    box-shadow: 0 10px 20px rgba(0,0,0, 0.2);
}


/* 家电文字 */
.homeapp-content-show-product h4{
    font-size: 15px;
    font-weight: normal;
}

.homeapp-content-show-product p{
    color: #adadad;
    font-size: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.homeapp-content-show-product .new{
    font-size: 14px;
    color: #fa6509;
}
.homeapp-content-show-product .old{
    font-size: 14px;
    color: #adadad;
    text-decoration: line-through;
}

.homeapp-content-show-more{
    padding: 0px;
    background-color: transparent;
}

.homeapp-content-show-more a {
    display: block;
    padding: 30px 0px 30px 28px;
    width: 234px;
    height: calc((300px - 14px) / 2);
    background-color: #fff;
    box-sizing: border-box;
}

.homeapp-content-show-more-text {
    float: left;
    text-align: left;
}

.homeapp-content-show-more-text p {
    width: 90px;
    font-size: 14px;
    line-height: 22px;
    color: #333333;

}

.homeapp-content-show-more-text span {
    color: #ff6700;
}

.homeapp-content-show-more img {
    float: right;
    width: 80px;
    margin-right: 18px;
}

.homeapp-content-show-more a:first-child {
    margin-bottom: 14px;
}

.homeapp-content-show-more-text h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
}

.homeapp-content-show-more-text small {
    color: #757575;
}

.homeapp-content-show-product  i {
    float: right;
    font-size: 48px;
    color: #ff6700;
    margin-top: 16px;
    margin-right: 40px;
}

.homeapp-content-show-more a:hover{
    top: -1px;
    /*阴影特效*/
    box-shadow: 0 10px 20px rgba(0,0,0, 0.2);
}



/* 视频 */
.video {
    background-color: #f5f5f5;
    padding-bottom: 26px;
}



.video-title {
    height: 58px;
    line-height: 58px;
}

.video-title h2 {
    float: left;
    font-size: 22px;
    color: #333333;
    /* lighter细体 能不能起作用全看电脑中有没有细体 */
    font-weight: lighter;
}
.video-title-button {
    float: right;
    font-size: 16px;
}

.video-title-button i {
    background-color: #b0b0b0;
    color: #fff;
    border-radius: 50%;
    /* padding: 2px; */
    padding: 1px 0;
    padding-left: 2px;
    font-size: 14px;
}

.video-content-movie {
    position: relative;
    float: left;
    margin-right: 14px;
    width: 296px;
    height: 285px;
    background-color: #fff;
    transition:all .4s;
}

.video-content-movie:last-child {
    margin-right: 0;
}

.video-content-movie img {
    width: 100%;
}

.video-content-movie p {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
}

.video-content-movie-play {
    position: absolute;
    top: 142px;
    left: 25px;
    border: 2px solid #fff;
    height: 20px;
    border-radius: 11px;
}
.video-content-movie-play:hover {
    transition: all 0.5s;
    background-color: #ff6700;
    border-color:#ff6700;
}


.video-content-movie-play i {
    color: #fff;
    font-size: 30px;
    line-height: 20px;
}

.video-content-movie:hover{
    top: -1px;
    /*阴影特效*/
    box-shadow: 0 10px 20px rgba(0,0,0, 0.4);
}




/* 售后 */
.sale {

    height: 80px;
    background-color: #fff;

}

.sale .sale-main {
    height: 80px;
    padding:  27px 0;
    box-sizing: border-box ;
    border-bottom: 1px solid #e0e0e0;
}

.sale a {
    float: left;
    width: 244px;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 16px;
}

.sale a:last-child {
    border-right: none;
}

.sale i {
    font-size: 24px;
    /* 第一种 */
    /* position: relative;
    top: 6px; */
    /* 第二种 */
    vertical-align: middle;
    /* 第三种 浮动 margin-top调整 */
}




/* 其他 */
.other {
    padding: 40px 0;
}

.other-service {
    float: left;
}

.other-service dl {
    float: left;
    margin-right: 105px;
}

.other-service dt {
    font-size: 14px;
    color: #333;
    margin-bottom: 28px;
}

.other-service dd {
    font-size: 12px;
    color: #666;
    line-height: 28px;
}

.other-service a:hover {
    color: #fe7000;
}

.other-person {
    float: right;
    padding: 0 60px;
    border-left: 1px solid #e0e0e0;

}

.other-person h3 {
    font-size: 22px;
    font-weight: normal;
    color: #ff6700;
    margin-bottom: 10px;
}

.other-person p {
    color: #616161;
    line-height: 18px;
    text-align: center;
}

.other-person a {
    display: block;
    width: 120px;
    height: 30px;
    margin:0 auto;
    margin-top: 20px;
    border: 1px solid #ff6700;
    line-height: 30px;
    text-align: center;
    color: #ff6700;
    box-sizing: border-box;

}

.other-person a:hover {
    transition: all 1s;
    background-color: #ff6700;
    color: #fff;
}



/* 底部 */
.footer {
    background-color: #fafafa;
    padding: 30px 0;
}

.footer-logo {
    float: left;
    padding: 3px;
    width: 55px;
    height: 55px;
    background-color: #ff6700;
    text-align: center;
    box-sizing: border-box;
}

.footer-copyright {
    width: calc(1226px - 55px);
    padding-left: 10px;
    float: left;
    box-sizing: border-box;
}

.footer-copyright-link,
.footer-copyright-link a{
    color: #757575;
    line-height: 18px;

}

.footer-copyright-link a:hover {

    color: #ff6700;
}

.footer-copyright-agreement span,
.footer-copyright-agreement a {
    color: #b0b0b0;
    line-height: 1.5;
}

.footer-copyright-brand {
    margin-top: 10px;
}

.footer-copyright-brand img:first-child {
    width: 85px;
}


.footer-slogan {
    margin-top: 20px;
    text-align: center;

}




